package com.yumeng.example.main.dto;

import com.yumeng.common.api.IResultData;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * @author wxd
 * @date 2024/6/7 下午8:42
 */
@Getter
@Setter
@Schema(description = "简单SimpleDto对象")
public class SimpleDto implements IResultData {

    @NotNull(message="id不能为空")
    @Min(value = 3, message = "id最小值为{value}")
    @Schema(description = "测试id", example = "999")
    private Integer id;
    @NotBlank(message="名称不能为空")
    @Schema(description = "测试名称")
    private String name;

}
